package dao;

import entity.NurseRole;
import org.apache.ibatis.annotations.Param;

public interface NurseRoleDao  {
    /**
     * 查询该用户的角色id
     * @param nid
     * @return
     */
    public NurseRole getNurseRoleByNid(long nid);


    /**
     * 添加用户角色
     * @param posId
     * @param nId
     * @return
     */
    public boolean add(@Param("posId")long posId,@Param("nId") long nId);

    /**
     * 修改用户角色
     * @param posId
     * @param nId
     * @return
     */
    public boolean upd(@Param("posId")long posId,@Param("nId") long nId);


}
